/*
 * Copyright 2009 Brook Smith brook.smith@paradise.net.nz.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.javagenerate.generator.sample;

import java.util.Date;

/**
 * Here for prosperity - this is what the generated class looks like 
 * @author Brook
 *
 */
public class SimpleTest {

	public static SimpleTest getSimpleTest() {
		if (simpleTest == null) {
			simpleTest = new SimpleTest();
		}
		return simpleTest;
	}

	private String name;
	private String address;
	private String phone;
	private boolean active;
	private Date added;

	private static SimpleTest simpleTest;

	public Date getAdded() {
		return added;
	}

	public String getAddress() {
		return address;
	}

	public String getName() {
		return name;
	}

	public String getPhone() {
		return phone;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public void setAdded(Date added) {
		this.added = added;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(super.toString());
		sb.append(", getName=").append(getName());
		sb.append(", getAddress=").append(getAddress());
		sb.append(", getPhone=").append(getPhone());
		sb.append(", isActive=").append(isActive());
		sb.append(", getAdded=").append(getAdded());
		return sb.toString();
	}

}
